//
//  Printer.h
//  pa
//
//  Created by HaiJiao Chen on 12-12-24.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <StarIO/SMPort.h>

@class PrinterSelect;
@interface Printer : UIView <UITextFieldDelegate>
{
    SMPort *starPort;
    dispatch_queue_t queue;
    BOOL enableCheckLoop;
    IBOutlet PrinterSelect *portNameInfo;
    IBOutlet UILabel *statusInfo;
    IBOutlet UILabel *message;
    IBOutlet UIButton *connectButton;
    IBOutlet UIButton *sampleReceiptButton;
    IBOutlet UIButton *getStatusButton;
}
- (void)connect;
- (void)printSampleReceipt2inch;
- (void)printSampleReceipt3inch;


- (IBAction)pushButtonSampleReceipt:(id)sender;
- (IBAction)pushButtonGetStatus:(id)sender;
- (IBAction)pushButtonConnect:(id)sender;
- (IBAction)pushButtonBack:(id)sender;
@end

